<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>CRMBMW</title>
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/demo/demo.css">
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/promissGroup.js"></script>
</head>
<body>
<table id="pro_datagrid"></table>

<div id="pro_toolbar">
    <shiro:hasPermission name="promissGroup:saveOrUpdate">
        <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add'" data-cmd="add">添加</a>
        <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-edit'" data-cmd="edit">编辑</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="promissGroup:status">
        <a class="easyui-linkbutton" id="btn_state" data-options="plain:true,iconCls:'icon-remove'"
           data-cmd="status">解除</a>
    </shiro:hasPermission>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-reload'" data-cmd="reload">刷新</a>
    <span>合作状态:</span>
    <input class="easyui-combobox" id="qoDept"
                             data-options="value:'请选择',editable:false,panelHeight:'auto',
                             valueField:'id',textField:'name',data: [{
                                id: '1',
                                value: '是'
                            },{
                                id: '2',
                                value: '否'
                            }]">
    <span>关键字:</span><input class="easyui-textbox" prompt="请输入用户名或者电话" id="keyword">

    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'" data-cmd="query"></a>
</div>

<div id="pro_buttons">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'" data-cmd="save" data-url="saveOrUpdate"
       data-from="pro_form">保存</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" data-cmd="cancel">取消</a>
</div>


<div id="pro_dialog" align="center">
    <form method="post" id="pro_form">
        <input type="hidden" name="id">
        <table style="margin-top: 20px" align="center">
            <tr style="height:40px">
                <td>
                    机构代码:
                </td>
                <td>
                    <input class="easyui-textbox" name="code" data-options="required:true">
                </td>
            </tr>
            <tr style="height:40px">
                <td>
                    机构名称:
                </td>
                <td>
                    <input class="easyui-textbox" name="name" data-options="required:true">
                </td>
            </tr>
            <tr style="height:40px">
                <td>
                    法人代表:
                </td>
                <td>
                    <input class="easyui-textbox" name="legal" data-options="required:true">
                </td>
            </tr>
            <tr style="height:40px">
                <td>
                    法人身份证:
                </td>
                <td>
                    <input class="easyui-textbox" name="idcard" data-options="required:true">
                </td>
            </tr>

            <tr style="height:40px">
                <td>
                    联系方式:
                </td>
                <td>
                    <input class="easyui-textbox" name="tel">
                </td>
            </tr>
            <tr style="height:40px">
                <td>
                    联系地址:
                </td>
                <td>
                    <input class="easyui-textbox" name="address" data-options="required:true">
                </td>
            </tr>


            <tr style="height:40px">
                <td>
                    合作状态:
                </td>
                <td>
                    <input class="easyui-combobox" name="status"
                           data-options="panelHeight:'auto',
                            valueField: 'id',
                            limitToList: true,
                            editable:false,
                            textField: 'value',
                            data: [{
                                id: '1',
                                value: '是'
                            },{
                                id: '2',
                                value: '否'
                            }]">
                </td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>